//package mvc.controller;
//
//import java.util.List;
//
//import entity.Admin;
//
//import entity.Student;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Controller;
//import org.springframework.ui.Model;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestParam;
//import org.springframework.web.bind.annotation.ResponseBody;
//
//
//import service.api.AdminService;
//import util.CrowdUtil;
//import util.ResultEntity;
//
//import javax.servlet.http.HttpServletRequest;
//
//@Controller
//public class TestHandler {
//
//    @Autowired
//    private AdminService adminService;
//
//    private Logger logger = LoggerFactory.getLogger(TestHandler.class);
//
//    @ResponseBody
//    @RequestMapping("/send/compose/object.json")
//    public ResultEntity<Student> testReceiveComposeObject(@RequestBody Student student,HttpServletRequest request) {
//        boolean judgeResult = CrowdUtil.judeRequesType(request);
//
//
//
//
//
//        logger.info(student.toString());
//        logger.info("judgeResult="+judgeResult);
//        return ResultEntity.successWithData(student);
//    }
//
//    @ResponseBody
//    @RequestMapping("/send/array/three.html")
//    public String testReceiveArrayThree(@RequestBody List<Integer> array) {
//
//        for (Integer number : array) {
//            logger.info("number=" + number);
//        }
//
//        return "success";
//    }
//
//    @ResponseBody
//    @RequestMapping("/send/array/two.html")
//    public String testReceiveArrayTwo(ParamData paramData) {
//
//        List<Integer> array = paramData.getArray();
//
//        for (Integer number : array) {
//            System.out.println("number=" + number);
//        }
//
//        return "success";
//    }
//
//    @ResponseBody
//    @RequestMapping("/send/array/one.html")
//    public String testReceiveArrayOne(@RequestParam("array[]") List<Integer> array) {
//
//        for (Integer number : array) {
//            System.out.println("number=" + number);
//        }
//
//        return "success";
//    }
//
//    @RequestMapping("/test/ssm.html")
//    public String testSsm(Model model, HttpServletRequest request) {
//
//
//
//        boolean judgeResult = CrowdUtil.judeRequesType(request);
//
//        logger.info("judgeResult="+judgeResult);
//
//        List<Admin> adminList = adminService.getAll();
//
//        model.addAttribute("adminList", adminList);
//
////        String a = null;
////
////        System.out.println(a.length());
////
////        List<Admin> admins = adminService.getAll();
////        model.addAttribute("admin", admins);
//
//        System.out.println(10/0);
//        return "target";
//    }
//
//}
